package com.aizuda.easyManagerTool.service.terminal;

import com.aizuda.easyManagerTool.domian.dto.terminal.SSHInfoDTO;
import com.aizuda.easyManagerTool.domian.vo.setting.SettingUserVO;
import org.springframework.web.socket.WebSocketSession;

import java.util.Objects;
import java.util.function.BiConsumer;
import java.util.function.BiFunction;
import java.util.function.Consumer;

public interface ScriptService {

    String execScript(String topic, SettingUserVO user, SSHInfoDTO sshInfoDTO,String shPath,String parameter,BiConsumer<String, WebSocketSession> callBack);

//    String execScript(String topic, SettingUserVO user, SSHInfoDTO sshInfoDTO,String shPath,String parameter);
//
//    String execScript(String topic, SettingUserVO user, SSHInfoDTO sshInfoDTO,String command,BiConsumer<String, WebSocketSession> callBack);

    String execScript(String topic, SettingUserVO user, SSHInfoDTO sshInfoDTO,String command);
}
